#ifndef PATHPLANMW_H
#define PATHPLANMW_H

#include <QMainWindow>
#include <QLabel>
#include <QPaintEvent>
#include <QVector>
#include "path.h"
#include <QMap>
#include <QRadioButton>
#include<QString>
#include <QPainter>
#include<QTime>
namespace Ui {
class PathplanMW;
}

class PathplanMW : public QMainWindow
{
    Q_OBJECT

public:
    int c=4;
    int distance[12];
    int distance1[12][12];
    QString display;
    QString colors[12][12];
    QRadioButton *mpb[9];

    explicit PathplanMW(QWidget *parent = nullptr);
    ~PathplanMW();
    void place_onclick(QRadioButton *btn);
    void init();
protected:
    //void paintEvent(QPaintEvent *event) override;
    void paintEvent(QPaintEvent *);

private slots:
   void on_btn_back_clicked();

   void on_btn_shopping_clicked();

   void on_btn_lits_clicked();

   void on_btn_integrated_clicked();

   void on_btn_practice_clicked();

   void on_btn_gymnasium_clicked();

   void on_btn_art_clicked();

   void on_btn_5teaching_clicked();

   void on_btn_3teaching_clicked();

   void on_btn_library_clicked();

   void on_btn_pathplanning_clicked();

private:
    Ui::PathplanMW *ui;
    pathshow *shortes;

};

#endif // PATHPLANMW_H
